package com.ship.boats.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.boats.domain.CurrencyExchangeRate;
import com.ship.boats.domain.dto.ExportCurrencyExchangeRateRq;
import com.ship.boats.domain.dto.QueryCurrencyConversionRq;
import com.ship.boats.domain.dto.QueryCurrencyExchangeRateRq;
import com.ship.boats.domain.vo.ExportCurrencyExchangeRateInfo;
import com.ship.boats.domain.vo.QueryCurrencyExchangeRateInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CurrencyExchangeRateMapper extends BaseMapper<CurrencyExchangeRate> {
    QueryCurrencyExchangeRateInfo queryCurrencyExchangeRateById(@Param("id") String id);

    List<QueryCurrencyExchangeRateInfo> queryCurrencyExchangeRateList(@Param("query")QueryCurrencyExchangeRateRq query);

    List<ExportCurrencyExchangeRateInfo> exportCurrencyExchangeRateList(@Param("query") ExportCurrencyExchangeRateRq query);

    CurrencyExchangeRate queryCurrencyExchangeRateByName(@Param("curveName") String curveName,@Param("curveDate") String curveDate);

    CurrencyExchangeRate queryCurrencyConversion(@Param("query") QueryCurrencyConversionRq query);
}
